export {}

// 对象类型

// 空对象
let person: {} = {}

// 有属性的对象

let person1: {name: string} = {
  name: '老韩',
}

// 有属性和方法

let  person2: {name:string;sayHi(): void; run():void} ={
  name: '张三',
  sayHi: () => {},
  run: () => {}
}

let person3: {
  name: string
  age: number
} = {
  name: '李四',
  age: 15
}